<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新闻详情-牛马新闻中心</title>
    <script type="text/javascript" src="../JS/CheckLogin.js"></script>
    <link rel="stylesheet" type="text/css" href="../CSS/News_detail.css"/>
    <!--检查登录态-->

</head>
<body class="News_D">
<!--<%@ include file="Header.jsp" %>-->
    <div class="new_detail">
        <span id="title">${title}</span><br/>
        <span id="author">${author}</span><br/>
        <span id="type">${type}</span><br/>
        <span id="time">${time}</span><br/>
        <span id="content">${content}</span><br/>
    </div>
    <div class="new_recommend">
        <span style="font-size: 24px;">相关新闻</span><br/>
        <span class="news_title">${title}</span><br/><br/>
        <span class="news_title">${title}</span><br/><br/>
        <span class="news_title">${title}</span><br/><br/>
        <span class="news_title">${title}</span><br/><br/>
        <span class="news_title">${title}</span><br/><br/>
    </div>
</body>
<script type="text/javascript">
    var NTitle = document.getElementsByClassName('news_title');
    for(var i=0;i<5;i++){
        NTitle[i].onclick=function () {
            this.style.color='red';
        }
        NTitle[i].onmouseout=function () {
            this.style.color='blue';
        }
    }
</script>
<!--更改字体颜色-->
<script type="text/javascript">
    function GO(nT) {
        var rs = /<span class="news_title">(.*?)<\/span>/;
        var inner=nT.innerHTML.match(rs);
        window.localStorage.setItem("newstitle",inner[1]);
        window.location="#";
    }
</script>
<!--新闻标题点击事件-->
</html>